package com.chk.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chk.commom.utils.CommonResult;
import com.chk.user.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2023-10-20 11:00:20
 */
public interface UserService extends IService<User> {

    CommonResult login(User user, HttpServletRequest request);

    CommonResult getCode(HttpServletRequest request, HttpServletResponse res) throws IOException;

    CommonResult getCurrentUserInfo(HttpServletRequest request);

    CommonResult getUserList(String condition, Integer pageNow, Integer pageSize);
}

